<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2023/7/25
  Time: 9:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title>工作日报添加</title>
    <link rel="stylesheet" href="${pageContext.servletContext.contextPath}/css/pintuer.css">
    <link rel="stylesheet" href="${pageContext.servletContext.contextPath}/css/admin.css">
    <script src="${pageContext.servletContext.contextPath}/js/jquery.js"></script>
    <script src="${pageContext.servletContext.contextPath}/js/pintuer.js"></script>

</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加内容</strong></div>
    <c:if test="${message!=null}">
        <font size="20px" color="red">${message}</font><br>
        <a href="${pageContext.servletContext.contextPath}/apply/list">
            <button style="width: 80px;height: 40px" >返回</button>
        </a>
    </c:if>
    <c:if test="${message==null}">
        <div class="body-content">
            <form method="post" class="form-x" action="${pageContext.servletContext.contextPath}/apply/add">
                <div class="form-group">
                    <div class="label">
                        <label>申请人：</label>
                    </div>
                    <div class="field">
                        <h3>${USER.name}</h3>
                        <input type="hidden" name="applyEmpId" value="${USER.id}">
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label>申请内容：</label>
                    </div>
                    <div class="field">
                        <input type="text" name="content">
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label></label>
                    </div>
                    <div class="field">
                        <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                    </div>
                </div>
            </form>
        </div>
    </c:if>

</div>

</body>
</html>